﻿@model AdminHeaderLinksModel
@using Nop.Web.Models.Common;
@if (Model.IsCustomerImpersonated || Model.DisplayAdminLink)
{
    <li>
        @if (Model.IsCustomerImpersonated)
        {
            <span class="impersonate">
                @string.Format(T("Account.ImpersonatedAs").Text, Model.ImpersonatedCustomerEmailUsername)
            - <a href="@Url.RouteUrl("Logout")" class="finish-impersonation" title="@T("Account.ImpersonatedAs.Finish.Hint")">@T("Account.ImpersonatedAs.Finish")</a>
        </span>
        }
        @if (Model.DisplayAdminLink)
        {
            <a href="@Url.Content("~/admin")" class="administration">
                <span class="hidden-xs">@T("Account.Administration")</span>
                <i class="hidden-lg hidden-md hidden-sm fa fa-cog fa-1x" title="@T("Account.Administration")"></i>
            </a>
        }
    </li>
}